#include <iostream>
#include <irrlicht.h>
#include "IrrLibBase.h"
#include <strings.h>
#include <sstream>
using
namespace
irr;
using
namespace
core;
using
namespace
scene;
using
namespace
video;
using
namespace
io;
using
namespace
gui;
using
namespace
std;
void
IrrLibBase::SetDriver(IVideoDriver* driver)
{
this
->driver = driver;
}
void
IrrLibBase::SetSmgr(ISceneManager* smgr)
{
this
->smgr = smgr;
}
std::string IrrLibBase::int_to_string (
int
t)
{
std::stringstream ss;
ss << t;
return
ss.str();
}
std::string IrrLibBase::stringw_to_stdstring(irr::core::stringw sw)
{
std::stringstream ss;
ss << sw.c_str();
return
ss.str();
}
irr::core::stringw IrrLibBase::stdstring_to_stringw(std::string ss)
{
stringw tmpw(ss.c_str());
return
tmpw;
}
void
IrrLibBase::SetDevice(irr::IrrlichtDevice *device)
{
this
->device = device;
}
void
IrrLibBase::init()
{
}